<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改类型')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-library-edit" th:object="${librarytype}">
		    <input name="typeId" type="hidden"  th:field="*{typeId}" />
			<div class="form-group">
				<label class="col-sm-3 control-label">类型编号：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="tyname" id="tyname" th:field="*{tyname}" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">类型描述：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="tydescribe" id="tydescribe" th:field="*{tydescribe}" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">显示顺序：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="tysort" id="tysort" th:field="*{tysort}" required>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">
		var prefix = ctx + "admin/library/type";

		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/edit", $('#form-library-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
